Error

@Serializable
data class Error(val message: String, val cause: Throwable? = null) : StreamEvent

Terminal error. Loop unwinds.

Constructors

Link copied to clipboard
constructor(message: String, cause: Throwable? = null)

Properties

Link copied to clipboard
@Transient
val cause: Throwable?

Typed cause when available, preserved to the boundary; not serialized.

Link copied to clipboard
Link copied to clipboard
val StreamEvent.metadata: Map<String, JsonElement>?

Functions

Link copied to clipboard
inline fun <T> StreamEvent.providerMetadataAs(provider: String): T?
fun <T> StreamEvent.providerMetadataAs(provider: String, serializer: KSerializer<T>): T?